<!--{*
/**
* @author Bimal Poudel
* @copyright since 2006, Bimal Poudel
* @package Smarty Framework
* @support http://www.odesk.com/users/~~dd91d11caed0cdce
* @contact http://www.sanjaal.com
* @company Sanjaal Corps
*/

Created on: 2011-03-26 02:03:52 890
*}-->

<div class="information">
	<ul class="links">
		<li><a href="posts-list.php"><img src="{'table'|icon}" title="List Posts" alt="List Posts" /> List Posts</a></li>
	</ul>
</div>

<div class="clear"><!--{*  style="clear:both;" *}--></div>

<form id="posts-edit-form" name="posts-edit-form" method="post" action="posts-edit.php">
  <table class="data edit">

<!-- file or image upload script/patch -->
<!--{*
	<tr class="{cycle values='A,B'} waring-overwrite">
		<td class="attribute">posts File/Picture:</td>
		<td>
			<input type="file" name="postsfile" id="postsfile" value="" />
			<a href="{$posts.postsfile}" target="preview">View current</a>
		</td>
	</tr>
*}-->


	<tr class="{cycle values='A,B'}">
		<td class="attribute">Post Title:</td>
		<td><input type="text" name="posts[post_title]" value="{$posts.post_title|htmlentities}" class="input" id="posts-post_title" /></td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Post Descriptions:</td>
		<td class="value"><textarea rows="5" cols="50" name="posts[post_descriptions]" class="editor" id="posts-post_descriptions">{$posts.post_descriptions|htmlentities}</textarea></td>
	</tr>


    <tr>
      <td class="attribute">&nbsp;</td>
      <td>
		<input type="text" name="email" value="" class="vanish" />
		<input type="text" name="is_spam" value="" class="vanish" />
		<!--{* 100% sure, only spammers fill these fields, Leave blank. *}-->
		
		<input type="hidden" name="post_id" value="{$posts.post_id}" />
		
		<!-- This is different than system's protection code. This is related to particular ID. -->
		<input type="hidden" name="protection_code" value="{$posts.code}" />
		<input type="hidden" name="edit-action" value="Edit Posts" />
		<input type="submit" name="submit-button" class="submit" value="Save Changes" />
		Or, <a href="{url::last_page('posts-list.php')}">Cancel</a>
	  </td>
    </tr>
  </table>
</form>

<!-- Validation -->
<script type="text/javascript" src="js/validator/gen_validatorv31.js"></script>
{js src='validators/posts/edit.js' validator=true}

<!-- Rich Editor: Remove if not necessary. Or, use different .js files -->
<script type="text/javascript" src="js/tinymce/tiny_mce.js"></script>
<script type="text/javascript" src="js/tinymce-textareas.js"></script>

<!-- End of posts Edit -->